

<!----------------------Added by NH 19/07/2012--------------------->
<script type="text/javascript" src="jquery/jRating.jquery.js"></script>
<script type="text/javascript" src="jquery/jRating.jquery.js"></script>

<script type="text/javascript">
    $('.star_rating').jRating({
                        /*type:'small',*/
                        isDisabled : true,
                        length : 5,
                        decimalLength : 1,
                        rateMax : 5
                });
</script>
<!-----------------------End by NH 19/07/2012--------------------->


<?php

/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General  License
*/
  require('includes/application_top.php');
  
  if (isset($HTTP_GET_VARS['manufacturers_id'])) {$manu_id=0+$HTTP_GET_VARS['manufacturers_id']; }
  else { $manu_id=NULL; }
  
  //----------------------Modify and Added by NH 19/07/2012---------------------
  //$st=tep_count_avg_rating(1,$current_category_id,$manu_id).'|'.tep_count_avg_rating(2,$current_category_id,$manu_id).'|'.tep_count_avg_rating(3,$current_category_id,$manu_id).'|'.tep_count_avg_rating(4,$current_category_id,$manu_id);
	 //echo $st;
     
     $content.='
     <div id ="avg"><div class="title">Avg. Customer Review</div>
	 <div class="avgrating"><div class="star_rating" id="4_2"></div><a href="javascript:void(0)"  id="4_'.$current_category_id.'" onClick="avr_reviews(this)"><span class="reviews"> & Up (<span class="BAvg4">'.tep_count_avg_rating(4,$current_category_id,$manu_id).'</span>)</span></a></div>
	 <div class="avgrating"><div class="star_rating" id="3_2"></div><a href="javascript:void(0)"  id="3_'.$current_category_id.'" onClick="avr_reviews(this)"><span class="reviews"> & Up (<span class="BAvg3">'.tep_count_avg_rating(3,$current_category_id,$manu_id).'</span>)</span></a></div>
	 <div class="avgrating"><div class="star_rating" id="2_2"></div><a href="javascript:void(0)"  id="2_'.$current_category_id.'"  onClick="avr_reviews(this)"><span class="reviews"> & Up (<span class="BAvg2">'.tep_count_avg_rating(2,$current_category_id,$manu_id).'</span>)</span></a></div>
	 <div class="avgrating"><div class="star_rating" id="1_2"></div><a href="javascript:void(0)"  id="1_'.$current_category_id.'"  onClick="avr_reviews(this)"><span class="reviews"> & Up (<span class="BAvg1">'.tep_count_avg_rating(1,$current_category_id,$manu_id).'</span>)</span></a></div>';
     echo $content;
  //---------------------------End by NH 19/07/2012-----------------------------    
?>
